import HTTP from "@/utils/request";
 
// 邀请函列表
export function invitationGetPageList(data) {
	return HTTP.post('/bole/invitation/getPageList', data)
}

export const attachmentGetList = (data) => {
	return HTTP.get('/bole/attachment/getList', data)
}

//设置默认附件
export const attachmentSetDefault = (data) => {
	return HTTP.get('/bole/attachment/setDefault', data)
}

//接受或拒绝
export const invitationOperate = (data) => {
	return HTTP.post('/bole/invitation/operate', data)
}

//删除附件
export const attachmentDelete = (data) => {
	return HTTP.get('/bole/attachment/delete', data)
}


//修改别名
export const attachmentEdit = (data) => {
	return HTTP.post('/bole/attachment/edit', data)
}

//选择附件
export const selectAttachment = (data) => {
	return HTTP.post('/bole/invitation/selectAttachment', data)
}


//创建会话 -新
export const generateSession = (data) => {
	return HTTP.post('/rtc/room/generateSession', data)
}


//获取openID
export const miniProgramextractOpenid = (data) => {
	return HTTP.get('/bole/miniProgram/extractOpenid', data)
}



//解密手机号码
export const miniProgramAuthorization = (data) => {
	return HTTP.post('/bole/miniProgram/authorization', data)
}


//获取用户信息
export const getUserInfo = (data) => {
	return HTTP.get('/bolePin/user/getUserInfo', data)
}


//获取邀请函信息
export const getBasicInfo = (data) => {
	return HTTP.get('/bole/invitation/getBasicInfo', data)
}

//拒绝|接受
export const scheduleInterview = (data) => {
	return HTTP.post('/bole/invitation/scheduleInterview', data)
}

//职位搜索|小程序端已登录
export const getRecommendList = (data) => {
	return HTTP.post('/bole/job/getRecommendList', data)
}

//职位搜索|小程序端非登录
export const recommendList = (data) => {
	return HTTP.post('/bole/job/recommendList', data)
}


//职位搜索|推荐理由
export const getRecommendInfo = (data) => {
	return HTTP.post('/bole/job/getRecommendInfo', data)
}
